package cn.hznc.domain.response;

/**
 * 状态枚举
 *
 * @author xiahuanyu
 * @date 2023/3/3
 */
public enum HttpCode {
    /**
     * 成功
     */
    SUCCESS("200","响应成功"),

    /**
     * 服务异常
     */
    SERVCIE_ERROR("500","服务异常");

    /**
     * 编码
     */
    private String code;

    /**
     * 注释信息
     */
    private String msg;

    /**
     *
     * @param code
     */
    HttpCode(String code,String msg) {
        this.code=code;
        this.msg=msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
